package com.clever.mall.commons.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

/**
 * @author ChenWang
 * @className WithdrawDepositRequestParam
 * @date 2020/11/10 10:49
 * @since JDK 1.8
 */
@Data
public class WithdrawDepositRequestParam {
    @NotNull
    @Min(1)
    private Integer userId;
    @NotNull
    private String name;
    @NotNull
    @Pattern(regexp = "^1[3-9][0-9]{9}$",message = "电话格式错误")
    private String phoneNumber;
    @Min(1)
    @Max(9999)
    @NotNull
    private BigDecimal money;
}
